#include "manager.h"

Manager *Manager::mAppManager = 0;

Manager::Manager() :
    mMainWindow(new MainWindow)
{
}

Manager::~Manager()
{

}

void Manager::setup()
{   // setting up all

    // setting up MainWindow
    mMainWindow->setup();
}


void Manager::createInstance()
{
    if (mAppManager == 0)
    {
        mAppManager = new Manager();
    }
    App->setup();
}

void Manager::deleteInstance()
{
    if (mAppManager != 0)
    {
        delete mAppManager;
        mAppManager = 0;
    }
}

Manager* Manager::instance()
{
    return mAppManager;
}

